jQuery.fn.extend({
	loading: function(compname) {
		var loadingDIV = '<div align="center" valign="middle" style="width:98%;padding-top:100px;">';
		loadingDIV += '<img src="'+ROOT+'/images/loading.gif"/><br/><br/><span style="color:red;font-weight:bold">正在处理，请稍等...</span>';
		loadingDIV += '</div>';
		$(this).html(loadingDIV);
	}
});
/**
 * 自定义验证方法
 */
jQuery.validator.addMethod("cnendigit", function(value, element) {       
    var pattern = /^[\u4e00-\u9fa5A-Za-z0-9]+$/;   
    return this.optional(element) || pattern.test(value);       
 }, "只能输入英文汉字数字!"); 
jQuery.validator.addMethod("endigit", function(value, element) {       
    var pattern = /^[A-Za-z0-9]+$/;   
    return this.optional(element) || pattern.test(value);       
 }, "只能输入英文数字!");